



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">

<head>
    <style>
        .fream-top-right>ul>li:hover>.margin0{
            margin:-10px -4px 0px;
        }
    </style>
    <link type="text/css" id="href" rel="stylesheet" href="skin/blue/blue.css">
    <script type="text/javascript">
        var g_usermenu = "maintainplancontroller.detail,patrolplancontroller.authall,stkstockoutcontroller.authall,performancerecordcontroller.list,commissionrepaircontroller.authall,materialcontroller.detail,locationcontroller.detail,warehousecontroller.index,mv_taskcontroller.detail,new_deviceknowledgecontroller.authall,repairstaticcontroller.authall,statisticsstockcontroller.authall,ctrlappointmentconfigcontroller.authall,deviceprintcontroller.detail,stkstockoutcontroller.index,devacceptancecontroller.index,stkledgercontroller.index,stkledgercontroller.list,scrapcontroller.index,schgroupcontroller.list,stkstockwarncontroller.detail,allocationcontroller.authall,allocationcontroller.detail,materialcontroller.authall,maintaintaskcontroller.authall,stkpickingcontroller.index,stkpickingcontroller.authall,mv_plancontroller.edit,devicedocumentcontroller.index,reportingfaultscontroller.index,devicecontroller.list,reportingfaultscontroller.receivemsg,performancerecordcontroller.detail,maintainplancontroller.add,ctrlusercontroller.list,ctrlappointmentconfigcontroller.detail,maintenancestaffcontroller.detail,stkpickingcontroller.list,deviceprintcontroller.authall,maintainplancontroller.edit,deviceinventorycontroller.authall,stkstockwarncontroller.index,ctrlappointmentcontroller.authall,ctrlgroupcontroller.authall,stkstockoutcontroller.detail,devicestaticcontroller.authall,reportingfaultscontroller.detail,mv_taskcontroller.list,curingstaticcontroller.authall,stkstockoutcontroller.list,devicedocumentcontroller.authall,ctrluserecord.list,devicetreecontroller.list,deviceexperencelibcontroller.detail,mv_plancontroller.index,new_ruleregcontroller.index,devicecontroller.detail,materialcontroller.index,devacceptancecontroller. detail,devicecontroller.export,new_deviceknowledgecontroller.list,warehousecontroller.detail,purpurchasecontroller.authall,devicetreecontroller.detail,ctrlgroupcontroller.list,purpurchasecontroller.index,locationcontroller.list,maintainrecordcontroller.index,maintenancestaffcontroller.edit,devdepreciationcontroller.authall,performancestatisticscontroller.authall,patrolstandardcontroller.edit,ctrlusercontroller.authall,stkpickingcontroller.apply,stkstockincontroller.index,deviceexperencelibcontroller.authall,scrapcontroller.detail,mv_taskcontroller.index,patroltaskcontroller.ReAssign,ctrlappointmentconfigcontroller.index,ctrlgroupcontroller.index,reportingfaultscontroller.authall,reportingfaultscontroller.list,schgroupcontroller.detail,stkstockincontroller.detail,devicedocumentcontroller.list,warehousecontroller.list,deviceinventorycontroller.list,scrapcontroller.list,stkstockincontroller.authall,purplancontroller. detail,maintainrecordcontroller.detail,devicecontroller.authall,devicecollarcontroller.list,deviceprintcontroller.list,stkinventorycontroller.authall,maintainrecordcontroller.add,stkinventorycontroller.index,ctrlgroupcontroller.detail,maintenancestaffcontroller.list,stkledgercontroller.authall,new_deviceknowledgecontroller.index,devacceptancecontroller.edit,ctrlappointmentcontroller.list,purplancontroller.index,maintainplancontroller.list,ctrlusercontroller.detail,stkpickingcontroller.detail,devicecollarcontroller.authall,materialcontroller.list,devicecontroller.edit,deviceexperencelibcontroller.index,new_ruleregcontroller.list,maintaintaskcontroller.detail,stkledgercontroller.detail,purpurchasecontroller. detail,deviceinventorycontroller.detail,schgroupcontroller.index,stkinventorycontroller.detail,ctrlusercontroller.index,scrapcontroller.authall,performancerecordcontroller.index,devicecollarcontroller.detail,deviceexperencelibcontroller.list,ctrluserecord.detail,mv_plancontroller.list,maintainrecordcontroller.list,locationcontroller.index,devsoldcontroller.authall,patrolstandardcontroller.authall,patrolstatisticscontroller.authall,allocationcontroller.index,maintenancestaffcontroller.index,purplancontroller.authall,ctrluserecord.authall,maintaintaskcontroller.index,maintenancestaffcontroller.authall,devsoldcontroller.apply,new_deviceknowledgecontroller.detail,maintaintaskcontroller.list,ctrlappointmentcontroller.index,devicedocumentcontroller.detail,deviceprintcontroller.index,ctrlappointmentconfigcontroller.list,devicecollarcontroller.index,stkstockwarncontroller.authall,deviceinventorycontroller.index,maintainplancontroller.addrecord,patrolplancontroller.edit,ctrluserecord.index,ctrlappointmentcontroller.detail,stkinventorycontroller.list,performancerecordcontroller.authall,maintainrecordcontroller.authall,stkstockwarncontroller.list,mv_taskcontroller.authall,mv_plancontroller.detail,devicecontroller.index,new_ruleregcontroller.authall,maintainplancontroller.index,patroltaskcontroller.authall,devicetreecontroller.index,allocationcontroller.list,new_ruleregcontroller.detail";
    </script>



    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=11,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">

    <base href="http://demo.windasoft.com:8080/windaedm/"></base>
    <title>风塔设备管理系统</title>
    <style>
        /* 滚动条样式：(有浏览器兼容问题) */
        /*滚动条 start*/
        ::-webkit-scrollbar {
            width: 7px;
            height: 7px;
            background-color: #757575;
        }
        /*定义滚动条轨道 内阴影+圆角*/
        ::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
            background: #fff ;
        }
        /*定义滑块 内阴影+圆角*/
        ::-webkit-scrollbar-thumb {
            border-radius: 3px;
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
            background-color:#757575;
        }


    </style>
    <link rel="shortcut  icon" type="image/x-icon" href="img/icon/favicon.ico" media="screen">
    <!-- 框架样式 -->
    <link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="plugin/layui/css/layui.css">
    <link type="text/css" rel="stylesheet" href="plugin/datatable/media/css/dataTables.bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="plugin/bootstrap-select/css/bootstrap-select.min.css?r=0.020456797551074324">
    <link rel="stylesheet" type="text/css" href="plugin/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.css">
    <link type="text/css" rel="stylesheet" href="plugin/radioCheckBox/src/pretty.min.css">
    <link type="text/css" rel="stylesheet" href="plugin/materialdesignicons/css/materialdesignicons.min.css">
    <link async rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css"/>
    <link type="text/css" rel="stylesheet" href="plugin/radioCheckBox/src/pretty.min.css">
    <link type="text/css" rel="stylesheet" href="plugin/drag/drag.css">
    <link type="text/css" rel="stylesheet" href="plugin/calendar/simple-calendar.css">
    <link type="text/css" rel="stylesheet" href="plugin/weather/leoweather.css">
    <link rel="stylesheet" type="text/css" href="plugin/imgupload/css/cropper.min.css?r=0.6207188189209538">
    <link rel="stylesheet" type="text/css" href="plugin/imgupload/css/mui.min.css?r=0.9207463414125734">
    <link type="text/css" rel="stylesheet" href="plugin/jquery-plugin-circliful-master/css/jquery.circliful.css">

    <!-- 自定义样式 -->
    <link type="text/css" rel="stylesheet" href="css/fream.css"> <!-- 顶部和侧边 -->
    <link type="text/css" rel="stylesheet" href="css/iconfont.css">
    <link type="text/css" rel="stylesheet" href="css/main.css?r=0.4389791385058335">
    <link type="text/css" rel="stylesheet" href="css/nav.css">
    <link rel="stylesheet" type="text/css" href="css/processHelper.css?r=0.07160859914374484">
    <link type="text/css" rel="stylesheet" href="css/dtable.css">
    <link type="text/css" rel="stylesheet" href="page/back/firstpage/css/firstpage.css"><!-- 主页css -->
    <link type="text/css" rel="stylesheet" href="css/btn.css">
    <link type="text/css" rel="stylesheet" href="page/back/device/css/icon.css">

    <link type="text/css" rel="stylesheet" href="page/back/customprint/file/cpTemple.css">
    <link type="text/css" rel="stylesheet" href="js/utils/listRight/listRight.css">
    <link type="text/css" rel="stylesheet" href="plugin/checkBox/dist/checkbox.min.css">
    <link type="text/css" rel="stylesheet" href="page/back/maintainRecord/swiper/swiper.min.css">
    <link type="text/css" rel="stylesheet" href="js/utils/slider/slider.css">
    <link type="text/css" rel="stylesheet" href="plugin/select2-develop/dist/css/select2.min.css">

    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="plugin/layer/layer.js"></script>
    <script type="text/javascript" src="plugin/layui/layui.js"></script>
    <script type="text/javascript" src="plugin/countdown/countdown.js"></script>
    <script type="text/javascript" src="js/i-jquery.js?r=85145"></script>
    <script type="text/javascript" src="js/main.js?v=123"></script>
    <script type="text/javascript" src="js/imgClickBig.js"></script>
    <script type="text/javascript" src="js/jquery.cookie.min.js?v=123456"></script>
    <script type="text/javascript" src="plugin/datatable/media/js/jquery.dataTables.js"></script>
    <script type="text/javascript" src="plugin/datatable/media/js/dataTables.bootstrap.js"></script>
    <script type="text/javascript" src="js/jquery.timeago.js"></script>
    <script type="text/javascript" src="js/jquery.form.js"></script>
    <script type="text/javascript" src="plugin/bootstrap-select/js/bootstrap-select.js"></script>
    <script type="text/javascript" src="plugin/drag/drag.js"></script>
    <script type="text/javascript" src="plugin/calendar/simple-calendar.js"></script>
    <script type="text/javascript" src="plugin/weather/jquery.leoweather.min.js"></script>
    <script type="text/javascript" src="js/material-decomposition.js?r=123sdf"></script>
    <script type="text/javascript" src="js/processHelper.js?r=324242"></script>
    <script type="text/javascript" src="js/checkGroup.js?r=85145"></script>
    <script type="text/javascript" src="js/iDistpicker.js?r=85145"></script>
    <script type="text/javascript" src="plugin/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="plugin/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script type="text/javascript" src="js/pmHelper.js"></script>
    <script type="text/javascript" src="js/formUtil.js"></script>
    <script type="text/javascript" src="js/layer-date-format.js"></script>
    <script type="text/javascript" src="js/dateUtil.js"></script>
    <script type="text/javascript" src="js/iUpload.js"></script>
    <script type="text/javascript" src="plugin/eachrt4.1/echarts.js"></script>
    <script type="text/javascript" src="plugin/jquery-plugin-circliful-master/js/jquery.circliful.js"></script>
    <script type="text/javascript" src="plugin/utils/numberUtils.js"></script>
    <script type="text/javascript" src="js/checkWindowClose.js"></script>
    <script type="text/javascript" src="js/utils/common/fileUtils.js"></script>
    <script type="text/javascript" src="js/utils/common/arrayUtils.js"></script>
    <script type="text/javascript" src="js/utils/common/arrayUtils.js"></script>
    <script type="text/javascript" src="js/utils/common/formUtil.js"></script>
    <script type="text/javascript" src="js/utils/common/layer-tip.js"></script>

    <script type="text/javascript" src="plugin/select2-develop/dist/js/select2.js"></script>
    <script type="text/javascript" src="plugin/select2-develop/dist/js/pinyin.js"></script>

    <!-- 生成二维码-->
    <script type="text/javascript" src="plugin/qrcode/jquery.qrcode.js"></script>
    <script type="text/javascript" src="plugin/qrcode/qrcode.js"></script>
    <script type="text/javascript" src="plugin/qrcode/utf.js"></script>
    <script type="text/javascript" src="plugin/JsBarcode-master/dist/JsBarcode.all.js"></script>

    <!-- 树插件 -->
    <link rel="stylesheet" href="plugin/ztree/zTreeStyle/zTreeStyle.css" />
    <script type="text/javascript" src="plugin/ztree/jquery.ztree.all-3.5.min.js"></script>
    <script type="text/javascript" src="js/PullDownTreeUtil2.js"></script>
    <script src="plugin/jsPlumb/js/jsplumb.js"></script>
    <script src="plugin/jsPlumb/flowchart-util.js"></script>

    <script src="js/utils/listRight/listRightUtil.js"></script>
    <script src="js/utils/checkUtils/checkUtils.js"></script>
    <script src="page/back/patrolStatic/js/utils.js"></script>
    <script src="js/utils/slider/slider.js"></script>
    <script src="page/back/shuju/js/fullscreen.js"></script>
    <script src="page/back/maintainRecord/swiper/swiper.min.js"></script>

    <script  src="plugin/datatable/JSZip-2.5.0/jszip.min.js"></script>
    <script  src="plugin/datatable/pdfmake-0.1.36/pdfmake.min.js"></script>
    <script  src="plugin/datatable/Buttons-1.5.6/js/dataTables.buttons.js"></script>
    <script  src="plugin/datatable/Buttons-1.5.6/js/buttons.flash.min.js"></script>
    <script  src="plugin/datatable/Buttons-1.5.6/js/buttons.html5.js"></script>
    <script  src="plugin/datatable/Buttons-1.5.6/js/buttons.print.js"></script>
    <script  src="js/utils/table2excel/table2excel.js"></script>

    <link rel="stylesheet" type="text/css" href="page/back/firstpage/css/firstpage.css">

    <script type="text/javascript">
        function skin(index){
            $.cookie('http://demo.windasoft.com:8080/windaedm/skin', index);
            var block="http://demo.windasoft.com:8080/windaedm/skin/black/black.css";
            var blue="http://demo.windasoft.com:8080/windaedm/skin/blue/blue.css";
            if(index==0){
                $("#href").attr("href",blue);
            }
            else if(index==1){
                $("#href").attr("href",block);
            }
            $("body .skin li:eq("+index+")").css("border","1px solid #ccc").siblings("li").css("border","none");
        }
        (function(){
            var skinIndex = $.cookie("http://demo.windasoft.com:8080/windaedm/skin");
            if(skinIndex){
                skin(parseInt(skinIndex));
            }
        })()
        function showLoading(msg) {
            return layer.msg(msg||'加载中...', {
                icon : 16,
                shade : [ 0.5, 'black' ],
                scrollbar : false/* ,offset: '0px' */,
                time : 100000
            });
        }
        function closeLoading(index) {
            layer.close(index);
        }
        function showTip() {
            layer.msg('加载完成！', {
                time : 500
                /* ,offset: '10px' */});
        }
        $.fn.selectpicker.Constructor.DEFAULTS.size=12;

        (function(window){
            sys.getNoSyncData("showset/getShowSetInfo",{},function(data){
                window._showDataInfo = data;
            })
        })(window);

        if(console.table === undefined){
            console.table = console.log;
        }

    </script>

</head>

<body>
<!--顶部-->
<div class="fream-top" style="background-color:#449CCC;">
    <!--logo部分-->
    <div class="fream-logo">
        <img class="sys_logo_value" src="img/login/login-logo.png" >
        <span class="sys_name_value">风塔设备管理系统</span>
    </div>
    <div class="fream-top-right">
        <ul>
            <!--admin-->
            <li class="fream-admin">
                <img src="2244" onerror="this.src='http://demo.windasoft.com:8080/windaedm/img/defaultuser.png'">
                <span class="admin" data-account = "demo">严德蒙</span>
                <span class="glyphicon glyphicon-menu-down"></span>
                <ul class="admin-hover">
                    <a href="manage#userinfo/list"><li>编辑用户信息</li></a>
                    <a href="manage#passwordedit/list"><li>修改用户密码</li></a>
                    <a href="manage/logout"><li>退出<span class="glyphicon glyphicon-off" style="float:right;color:red;"></span></li></a></a>
                </ul>
            </li>
            <!--换肤-->
            <li class="fream-skin">
                <a><span class="iconfont icon-skin"></span></a>
                <div>换肤</div>
                <ul class="skin">
                    <li><span></span></li>
                    <li><span></span></li>
                </ul>
            </li>
            <!--待办事项-->
            <li class="matter">
                <a><span class="iconfont icon-matter" onclick='$("#todoList").toggle()'></span></a>
                <div>待办</div>
                <i id="todoCount">0</i>
                <dl id="todoList" style="box-shadow: darkgrey 1px 2px 15px 0px;">
                    <div class="parent">
                        <dd id="noTodo" style="color: #cecece;">无待办事项</dd>
                        <dd id="todoRepairCount"><a href="manage#reportingFaults/repairList?mainPage=reportingFaults/list"><img src="img/daiban/1.png">待维修<i class="num">0</i></a></dd>
                        <dd id="todoNeedAcceptCount"><a href="manage#reportingFaults/list?state=4&userid=11"><img src="img/daiban/icon-report-need-accept.png">待验收<i class="num">0</i></a></dd>
                        <dd id="todoMaintainCount"><a href="manage#maintainTask/completeList?mainPage=maintainTask/list"><img src="img/daiban/2.png">待养护<i class="num">0</i></a></dd>
                        <dd id="todoInventoryCountCount"><a href="manage#deviceInventory/mineList?mainPage=deviceInventory/list"><img src="img/daiban/3.png">待盘点<i class="num">0</i></a></dd>
                        <dd id="todoReportAssignCount"><a href="manage#reportingFaults/list?state=1"><img src="img/daiban/4.png">待分派<i class="num">0</i></a></dd>
                        <dd id="todoScrapCount"><a href="manage#scrap/auditList?mainPage=scrap/list"><img src="img/daiban/5.png">报废审批<i class="num">0</i></a></dd>
                        <dd id="todoPurchasePlanCount"><a href="manage#pur_plan/auditList?mainPage=pur_plan/index"><img src="img/daiban/12.png">采购计划<i class="num">0</i></a></dd>
                        <dd id="todoPickingCount"><a href="manage#stkPicking/auditList?mainPage=stkPicking/index"><img src="img/daiban/7.png">领料审批<i class="num">0</i></a></dd>
                        <dd id="todoAllocationCount"><a href="manage#allocation/auditList?mainPage=allocation/list"><img src="img/daiban/8.png">调拨审批<i class="num">0</i></a></dd>
                        <dd id="todoDevSoldCount"><a href="manage#devSold/auditList?mainPage=devSold/index"><img src="img/daiban/9.png">变卖审批<i class="num">0</i></dd>
                        <dd id="todoCommissionRepairCount"><a href="manage#commissionRepair/auditList?mainPage=commissionRepair/index"><img src="img/daiban/10.png">委外审批<i class="num">0</i></a></dd>
                        <dd id="todoPatrolCount"><a href="manage#patrolTask/mineList?state_not_in=9&mainPage=patrolTask/index"><img src="img/daiban/11.png">待巡检<i class="num">0</i></a></dd>
                        <dd id="todoPurchaseCount"><a href="manage#purchase/auditList?mainPage=purchase/index"><img src="img/daiban/6.png">采购审批<i class="num">0</i></a></dd>
                        <dd id="todoMvTaskCount"><a href="manage#mv_task/mylist?mainPage=mv_task/list&result=0"><img src="img/device/mv_task.png">计量核查<i class="num">0</i></a></dd>
                    </div>
                </dl>
            </li>
            <!--消息-->
            <li class="news">
                <a href="manage#message/list"><span class="iconfont icon-news"></span></a>
                <div>消息</div>
                <i class="GetUnReadCount">0</i>
            </li>
            <!--主页-->
            <li class="index">
                <a href="manage#manage/welcome"><span class="iconfont icon-index"></span></a>
                <div>主页</div>
            </li>
            <!--大屏看板-->
            <li class="index" onclick="fs()">
                <a  href="javascript:void 0;"><span class="iconfont icon-shuju"></span></a>
                <div class="margin0">大屏看板</div>
            </li>
        </ul>
    </div>
    <style>
        .fream-first-menu{
            float: left;
            height:60px;
            margin-left:100px;
        }
        .fream-first-menu ul li{
            height: 60px;
            float: right;
            position: relative;
            width:90px;
            color: white;
            padding:12px;
        }
        .fream-first-menu ul li:hover{
            background:#69BBF6;
            cursor: pointer;
        }
        .fream-first-menu ul li span{
            display:block;
            height:25px;
            width:100%;
            text-align: center;
        }
        .active-first-menu-color{
            background:#69BBF6
        }

    </style>
    <div class="fream-first-menu">
        <ul>
        </ul>
    </div>
</div>
<div class="div-left" style="font-family: 微软雅黑;display: none">
    <!--导航栏二-->
    <ul class="left-menu left-menu-one" style="display: none">
        <!-- 	    <a href="manage#manage/welcome"> -->
        <li class="menu-p" onclick="changeMenu(this)">
        <span class="zy-phone">WindaEDM</span><!-- <span style="color: rgb(166, 170, 175); font-size: 16px;" class="glyphicon glyphicon-home"></span>首页 -->
        <img class="changeMenu_shousuo changeMenu iconfont " alt=""   style="display: inline-block;position: relative;right:-23px;"></li>
        </li>
        <!--导航栏二(一级菜单)-->
        <li class="menu-p" th:data-id="${menu.id}" th:if="${menu.parentId}==''" th:each="menu:${menuList}">
            <span  th:class="${menu.icon}"  th:text="${menu.name}"></span>
            <span class="title-right glyphicon glyphicon-menu-right"></span>
        </li>
        <!--导航栏二(二级菜单)-->
        <ul class="menu-s" th:data-id="${menu.id}" th:if="${menu.parentId}==''" th:each="menu:${menuList}">
            <li class="menu-s-item" th:if="${menu.id}==${menuS.parentId}" th:each="menuS:${menuList}">
                <a th:href="'manage#'+${menuS.dataUrl}" >
                    <img class="list-style" th:src="${menuS.imgUrl}" th:text="${menuS.name}">
                </a>
            </li>
        </ul>
       <!-- <li class="menu-p" th:data-id="${menu.id}" th:if="${menu.parentId}==''" th:each="menu:${menuList}">
            <span  th:class="${menu.icon}"  th:text="${menu.name}"></span>
            <span class="title-right glyphicon glyphicon-menu-right"></span>
        </li>
        <ul class="menu-s" th:data-id="${menu.id}" th:if="${menu.parentId}==''" th:each="menu:${menuList}">

            <li class="menu-s-item" th:if="${menu.id}==${menuS.parentId}" th:each="menuS:${menuList}">
                <a th:href="'manage#'+${menuS.dataUrl}" th:text="${menuS.name}">
                    <img class="list-style" th:src="${menuS.imgUrl}">
                </a>
            </li>

            &lt;!&ndash;<li class="menu-s-item"><a href="manage#purchase/index">
            <img class="list-style" src="imgs/bgc/1.png"> 采购申请</a>
            </li>

            <li class="menu-s-item"><a href="manage#devAccept/index"><img class="list-style" src="imgs/bgc/3.png"> 设备验收</a></li>
&ndash;&gt;
        </ul>-->
        <!--<li class="menu-p" data-id="81"><span  class="iconfont icon-purchase"  th:text="${menuList.get(0).name}"></span>1<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="81">

            <li class="menu-s-item"><a href="manage#pur_plan/index"><img class="list-style" src="imgs/bgc/2.png"> 采购计划</a></li>

            <li class="menu-s-item"><a href="manage#purchase/index"><img class="list-style" src="imgs/bgc/1.png"> 采购申请</a></li>

            <li class="menu-s-item"><a href="manage#devAccept/index"><img class="list-style" src="imgs/bgc/3.png"> 设备验收</a></li>

        </ul>

        <li class="menu-p" data-id="31">
            <span  class="iconfont icon-menu-device"></span>设备管理<span class="title-right glyphicon glyphicon-menu-right"></span>
            </li>
        <ul class="menu-s" data-pid="31">

            <li class="menu-s-item"><a href="manage#device/list"><img class="list-style" src="imgs/bgc/1.png"> 设备台账</a></li>

            <li class="menu-s-item"><a href="manage#deviceTree/index"><img class="list-style" src="imgs/bgc/2.png"> 设备结构树</a></li>

            <li class="menu-s-item"><a href="manage#depreciation/index"><img class="list-style" src="imgs/bgc/5.png"> 设备折旧</a></li>

            <li class="menu-s-item"><a href="manage#deviceprint/list"><img class="list-style" src="imgs/bgc/4.png"> 标签打印</a></li>

            <li class="menu-s-item"><a href="manage#deviceInventory/list"><img class="list-style" src="imgs/bgc/6.png"> 设备盘点</a></li>

            <li class="menu-s-item"><a href="manage#performanceRecord/index"><img class="list-style" src="imgs/bgc/7.png"> 运行记录</a></li>

            <li class="menu-s-item"><a href="manage#location/warehouselist"><img class="list-style" src="imgs/bgc/3.png"> 基础设置</a></li>

        </ul>

        <li class="menu-p" data-id="131"><span  class="iconfont icon-inspection"></span>设备处置<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="131">

            <li class="menu-s-item"><a href="manage#allocation/list"><img class="list-style" src="imgs/bgc/1.png"> 调拨转移</a></li>

            <li class="menu-s-item"><a href="manage#scrap/list"><img class="list-style" src="imgs/bgc/2.png"> 设备报废</a></li>

            <li class="menu-s-item"><a href="manage#sold/index"><img class="list-style" src="imgs/bgc/3.png"> 设备变卖</a></li>

            <li class="menu-s-item"><a href="manage#deviceCollar/list"><img class="list-style" src="imgs/bgc/4.png"> 领用归还</a></li>

        </ul>

        <li class="menu-p" data-id="141"><span  class="iconfont icon-metering"></span>计量核查<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="141">

            <li class="menu-s-item"><a href="manage#mv_plan/list"><img class="list-style" src="imgs/bgc/1.png"> 计量核查计划</a></li>

            <li class="menu-s-item"><a href="manage#mv_task/list"><img class="list-style" src="imgs/bgc/2.png"> 计量核查任务</a></li>

        </ul>

        <li class="menu-p" data-id="41"><span  class="iconfont icon-edit-tool"></span>维修管理<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="41">

            <li class="menu-s-item"><a href="manage#reportingFaults/list"><img class="list-style" src="imgs/bgc/1.png"> 报修工单</a></li>

            <li class="menu-s-item"><a href="manage#commissionRepair/index"><img class="list-style" src="imgs/bgc/2.png"> 外委维修</a></li>

        </ul>

        <li class="menu-p" data-id="51"><span  class="iconfont icon-curing"></span>养护管理<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="51">

            <li class="menu-s-item"><a href="manage#maintainPlan/list"><img class="list-style" src="imgs/bgc/1.png"> 养护计划</a></li>

            <li class="menu-s-item"><a href="manage#maintainTask/list"><img class="list-style" src="imgs/bgc/2.png"> 养护任务</a></li>

            <li class="menu-s-item"><a href="manage#maintainRecord/list"><img class="list-style" src="imgs/bgc/3.png"> 养护记录</a></li>

        </ul>

        <li class="menu-p" data-id="101"><span  class="iconfont icon-site-inspection"></span>巡检管理<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="101">

            <li class="menu-s-item"><a href="manage#patrolStandard/index"><img class="list-style" src="imgs/bgc/1.png"> 巡检标准</a></li>

            <li class="menu-s-item"><a href="manage#patrolPlan/index"><img class="list-style" src="imgs/bgc/2.png"> 巡检计划</a></li>

            <li class="menu-s-item"><a href="manage#patrolTask/index"><img class="list-style" src="imgs/bgc/3.png"> 巡检任务</a></li>

        </ul>

        <li class="menu-p" data-id="121"><span  class="iconfont icon-menu-user"></span>人员管理<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="121">

            <li class="menu-s-item"><a href="manage#maintenanceStaff/list"><img class="list-style" src="imgs/bgc/1.png"> 实施人员管理</a></li>

            <li class="menu-s-item"><a href="manage#schGroup/index"><img class="list-style" src="imgs/bgc/2.png"> 排班管理</a></li>

        </ul>

        <li class="menu-p" data-id="71"><span  class="iconfont icon-consumables"></span>备件耗材<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="71">

            <li class="menu-s-item"><a href="manage#warehouse/warehouselist"><img class="list-style" src="imgs/bgc/5.png"> 仓库管理</a></li>

            <li class="menu-s-item"><a href="manage#stkPicking/index"><img class="list-style" src="imgs/bgc/6.png"> 领料申请</a></li>

            <li class="menu-s-item"><a href="manage#material/list"><img class="list-style" src="imgs/bgc/7.png"> 基值管理</a></li>

            <li class="menu-s-item"><a href="manage#stockWarn/list"><img class="list-style" src="imgs/bgc/8.png"> 库存预警</a></li>

            <li class="menu-s-item"><a href="manage#stockLedger/index"><img class="list-style" src="imgs/bgc/4.png"> 库存台账</a></li>

            <li class="menu-s-item"><a href="manage#stockIn/index"><img class="list-style" src="imgs/bgc/1.png"> 入库管理</a></li>

            <li class="menu-s-item"><a href="manage#stockOut/index"><img class="list-style" src="imgs/bgc/2.png"> 出库管理</a></li>

            <li class="menu-s-item"><a href="manage#inventory/index"><img class="list-style" src="imgs/bgc/3.png"> 仓库盘点</a></li>

        </ul>

        <li class="menu-p" data-id="111"><span  class="iconfont icon-data"></span>资料库<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="111">

            <li class="menu-s-item"><a href="manage#devDoc/index"><img class="list-style" src="imgs/bgc/1.png"> 设备资料</a></li>

            <li class="menu-s-item"><a href="manage#devExpLib/index"><img class="list-style" src="imgs/bgc/2.png"> 维保经验</a></li>

            <li class="menu-s-item"><a href="manage#ruleReg/index"><img class="list-style" src="imgs/bgc/3.png"> 规章制度</a></li>

            <li class="menu-s-item"><a href="manage#devKnow/index"><img class="list-style" src="imgs/bgc/4.png"> 设备知识</a></li>

        </ul>

        <li class="menu-p" data-id="91"><span  class="iconfont icon-curingstatic"></span>统计分析<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="91">

            <li class="menu-s-item"><a href="manage#curingstatic/list"><img class="list-style" src="imgs/bgc/1.png"> 养护统计</a></li>

            <li class="menu-s-item"><a href="manage#devicestatic/list"><img class="list-style" src="imgs/bgc/2.png"> 设备统计</a></li>

            <li class="menu-s-item"><a href="manage#repairstatic/list"><img class="list-style" src="imgs/bgc/3.png"> 维修统计</a></li>

            <li class="menu-s-item"><a href="manage#statisticsStock/index"><img class="list-style" src="imgs/bgc/4.png"> 库存统计</a></li>

            <li class="menu-s-item"><a href="manage#performanceStatistics/index"><img class="list-style" src="imgs/bgc/5.png"> 运行统计</a></li>

            <li class="menu-s-item"><a href="manage#patrolStatistics/index"><img class="list-style" src="imgs/bgc/6.png"> 点检统计</a></li>

        </ul>

        <li class="menu-p" data-id="61"><span  class="iconfont icon-device-charge"></span>设备管控<span class="title-right glyphicon glyphicon-menu-right"></span></li>
        <ul class="menu-s" data-pid="61">

            <li class="menu-s-item"><a href="manage#ctrlUser/index"><img class="list-style" src="imgs/bgc/1.png"> 人员管理</a></li>

            <li class="menu-s-item"><a href="manage#ctrlGroup/index"><img class="list-style" src="imgs/bgc/2.png"> 分组授权</a></li>

            <li class="menu-s-item"><a href="manage#ctrlAppointment/index"><img class="list-style" src="imgs/bgc/3.png"> 预约时间</a></li>

            <li class="menu-s-item"><a href="manage#ctrlRecord/index"><img class="list-style" src="imgs/bgc/4.png"> 上机记录</a></li>

            <li class="menu-s-item"><a href="manage#ctrlAppointmentCtrl/index"><img class="list-style" src="imgs/bgc/5.png"> 预约设置</a></li>

        </ul>-->

    </ul>
    <!--导航栏一-->
    <ul class="left-menu-two" style="display: none">
        <li class="menu-two-li-p" style="cursor: pointer;" onclick="changeMenu(this)">
            <img class="changeMenu_zhankai changeMenu iconfont "></li>
        <!--导航栏一(一级菜单)-->
        <li class="menu-two-li-p" th:each="menu,stat:${menuList}" th:data-id="${menu.id}" th:if="${menu.parentId == ''}"  data-index="stat.index" data-url="" >
                <span  th:class="${menu.icon}"></span>
                <span class="menu-two-li-title"  th:text="${menu.name}"></span>
        </li>

       <!-- <li class="menu-two-li-p" data-id="81" data-index="0" data-url="">
            <span class="iconfont icon-purchase"></span>
            <span class="menu-two-li-title"></span>
        </li>

        <li class="menu-two-li-p" data-id="31" data-index="1" data-url="">
            <span class="iconfont icon-menu-device"></span>
            <span class="menu-two-li-title">设备管理</span>
        </li>

        <li class="menu-two-li-p" data-id="131" data-index="2" data-url="">
            <span class="iconfont icon-inspection"></span>
            <span class="menu-two-li-title">设备处置</span>
        </li>

        <li class="menu-two-li-p" data-id="141" data-index="3" data-url="">
            <span class="iconfont icon-metering"></span>
            <span class="menu-two-li-title">计量核查</span>
        </li>

        <li class="menu-two-li-p" data-id="41" data-index="4" data-url="">
            <span class="iconfont icon-edit-tool"></span>
            <span class="menu-two-li-title">维修管理</span>
        </li>

        <li class="menu-two-li-p" data-id="51" data-index="5" data-url="">
            <span class="iconfont icon-curing"></span>
            <span class="menu-two-li-title">养护管理</span>
        </li>

        <li class="menu-two-li-p" data-id="101" data-index="6" data-url="">
            <span class="iconfont icon-site-inspection"></span>
            <span class="menu-two-li-title">巡检管理</span>
        </li>

        <li class="menu-two-li-p" data-id="121" data-index="7" data-url="">
            <span class="iconfont icon-menu-user"></span>
            <span class="menu-two-li-title">人员管理</span>
        </li>

        <li class="menu-two-li-p" data-id="71" data-index="8" data-url="">
            <span class="iconfont icon-consumables"></span>
            <span class="menu-two-li-title">备件耗材</span>
        </li>

        <li class="menu-two-li-p" data-id="111" data-index="9" data-url="">
            <span class="iconfont icon-data"></span>
            <span class="menu-two-li-title">资料库</span>
        </li>

        <li class="menu-two-li-p" data-id="91" data-index="10" data-url="">
            <span class="iconfont icon-curingstatic"></span>
            <span class="menu-two-li-title">统计分析</span>
        </li>

        <li class="menu-two-li-p" data-id="61" data-index="11" data-url="">
            <span class="iconfont icon-device-charge"></span>
            <span class="menu-two-li-title">设备管控</span>
        </li>-->
    </ul>
    <div class="menu-sun-content" style="display: none; ">
        <!--导航栏一(二级菜单) -->
        <ul class="menu-two-ul-s"  th:each="menu:${menuList}"  th:if="${menu.parentId} ==''"  th:data-pid="${menu.id}" >
            <!---->
            <a  th:href="'manage#'+${menuS.dataUrl}" class="menu-sun-a"  th:if="${menu.id}==${menuS.parentId}" th:each="menuS:${menuList}">
                <li class="menu-two-ul-item" th:data-title="${menuS.name}"  th:data-pid="${menu.id}"  th:data-url="${menuS.dataUrl}" >
                    <img class="list-style" th:src="${menuS.imgUrl}" th:text="${menuS.name}" ></li>
            </a>

           <!-- <a href="manage#purchase/index" class="menu-sun-a" >
                <li class="menu-two-ul-item" data-title="采购申请" data-pid="81"  data-url="purchase/index" >
                    <img class="list-style" src="imgs/bgc/1.png"> 采购申请</li>
            </a>

            <a href="manage#devAccept/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备验收" data-pid="81"  data-url="devAccept/index" ><img class="list-style" src="imgs/bgc/3.png"> 设备验收</li></a>
-->
        </ul>
      <!--  <ul class="menu-two-ul-s" data-pid="81" >

            <a href="manage#pur_plan/index" class="menu-sun-a" >
                <li class="menu-two-ul-item" data-title="采购计划" data-pid="81"  data-url="pur_plan/index" >
                    <img class="list-style" src="imgs/bgc/2.png"> 采购计划</li>
            </a>

            <a href="manage#purchase/index" class="menu-sun-a" >
                <li class="menu-two-ul-item" data-title="采购申请" data-pid="81"  data-url="purchase/index" >
                    <img class="list-style" src="imgs/bgc/1.png"> 采购申请</li>
            </a>

            <a href="manage#devAccept/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备验收" data-pid="81"  data-url="devAccept/index" ><img class="list-style" src="imgs/bgc/3.png"> 设备验收</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="31" >

            <a href="manage#device/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备台账" data-pid="31"  data-url="device/list" ><img class="list-style" src="imgs/bgc/1.png"> 设备台账</li></a>

            <a href="manage#deviceTree/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备结构树" data-pid="31"  data-url="deviceTree/index" ><img class="list-style" src="imgs/bgc/2.png"> 设备结构树</li></a>

            <a href="manage#depreciation/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备折旧" data-pid="31"  data-url="depreciation/index" ><img class="list-style" src="imgs/bgc/5.png"> 设备折旧</li></a>

            <a href="manage#deviceprint/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="标签打印" data-pid="31"  data-url="deviceprint/list" ><img class="list-style" src="imgs/bgc/4.png"> 标签打印</li></a>

            <a href="manage#deviceInventory/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备盘点" data-pid="31"  data-url="deviceInventory/list" ><img class="list-style" src="imgs/bgc/6.png"> 设备盘点</li></a>

            <a href="manage#performanceRecord/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="运行记录" data-pid="31"  data-url="performanceRecord/index" ><img class="list-style" src="imgs/bgc/7.png"> 运行记录</li></a>

            <a href="manage#location/warehouselist" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="基础设置" data-pid="31"  data-url="location/warehouselist" ><img class="list-style" src="imgs/bgc/3.png"> 基础设置</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="131" >

            <a href="manage#allocation/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="调拨转移" data-pid="131"  data-url="allocation/list" ><img class="list-style" src="imgs/bgc/1.png"> 调拨转移</li></a>

            <a href="manage#scrap/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备报废" data-pid="131"  data-url="scrap/list" ><img class="list-style" src="imgs/bgc/2.png"> 设备报废</li></a>

            <a href="manage#sold/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备变卖" data-pid="131"  data-url="sold/index" ><img class="list-style" src="imgs/bgc/3.png"> 设备变卖</li></a>

            <a href="manage#deviceCollar/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="领用归还" data-pid="131"  data-url="deviceCollar/list" ><img class="list-style" src="imgs/bgc/4.png"> 领用归还</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="141" >

            <a href="manage#mv_plan/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="计量核查计划" data-pid="141"  data-url="mv_plan/list" ><img class="list-style" src="imgs/bgc/1.png"> 计量核查计划</li></a>

            <a href="manage#mv_task/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="计量核查任务" data-pid="141"  data-url="mv_task/list" ><img class="list-style" src="imgs/bgc/2.png"> 计量核查任务</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="41" >

            <a href="manage#reportingFaults/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="报修工单" data-pid="41"  data-url="reportingFaults/list" ><img class="list-style" src="imgs/bgc/1.png"> 报修工单</li></a>

            <a href="manage#commissionRepair/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="外委维修" data-pid="41"  data-url="commissionRepair/index" ><img class="list-style" src="imgs/bgc/2.png"> 外委维修</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="51" >

            <a href="manage#maintainPlan/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="养护计划" data-pid="51"  data-url="maintainPlan/list" ><img class="list-style" src="imgs/bgc/1.png"> 养护计划</li></a>

            <a href="manage#maintainTask/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="养护任务" data-pid="51"  data-url="maintainTask/list" ><img class="list-style" src="imgs/bgc/2.png"> 养护任务</li></a>

            <a href="manage#maintainRecord/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="养护记录" data-pid="51"  data-url="maintainRecord/list" ><img class="list-style" src="imgs/bgc/3.png"> 养护记录</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="101" >

            <a href="manage#patrolStandard/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="巡检标准" data-pid="101"  data-url="patrolStandard/index" ><img class="list-style" src="imgs/bgc/1.png"> 巡检标准</li></a>

            <a href="manage#patrolPlan/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="巡检计划" data-pid="101"  data-url="patrolPlan/index" ><img class="list-style" src="imgs/bgc/2.png"> 巡检计划</li></a>

            <a href="manage#patrolTask/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="巡检任务" data-pid="101"  data-url="patrolTask/index" ><img class="list-style" src="imgs/bgc/3.png"> 巡检任务</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="121" >

            <a href="manage#maintenanceStaff/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="实施人员管理" data-pid="121"  data-url="maintenanceStaff/list" ><img class="list-style" src="imgs/bgc/1.png"> 实施人员管理</li></a>

            <a href="manage#schGroup/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="排班管理" data-pid="121"  data-url="schGroup/index" ><img class="list-style" src="imgs/bgc/2.png"> 排班管理</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="71" >

            <a href="manage#warehouse/warehouselist" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="仓库管理" data-pid="71"  data-url="warehouse/warehouselist" ><img class="list-style" src="imgs/bgc/5.png"> 仓库管理</li></a>

            <a href="manage#stkPicking/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="领料申请" data-pid="71"  data-url="stkPicking/index" ><img class="list-style" src="imgs/bgc/6.png"> 领料申请</li></a>

            <a href="manage#material/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="基值管理" data-pid="71"  data-url="material/list" ><img class="list-style" src="imgs/bgc/7.png"> 基值管理</li></a>

            <a href="manage#stockWarn/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="库存预警" data-pid="71"  data-url="stockWarn/list" ><img class="list-style" src="imgs/bgc/8.png"> 库存预警</li></a>

            <a href="manage#stockLedger/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="库存台账" data-pid="71"  data-url="stockLedger/index" ><img class="list-style" src="imgs/bgc/4.png"> 库存台账</li></a>

            <a href="manage#stockIn/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="入库管理" data-pid="71"  data-url="stockIn/index" ><img class="list-style" src="imgs/bgc/1.png"> 入库管理</li></a>

            <a href="manage#stockOut/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="出库管理" data-pid="71"  data-url="stockOut/index" ><img class="list-style" src="imgs/bgc/2.png"> 出库管理</li></a>

            <a href="manage#inventory/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="仓库盘点" data-pid="71"  data-url="inventory/index" ><img class="list-style" src="imgs/bgc/3.png"> 仓库盘点</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="111" >

            <a href="manage#devDoc/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备资料" data-pid="111"  data-url="devDoc/index" ><img class="list-style" src="imgs/bgc/1.png"> 设备资料</li></a>

            <a href="manage#devExpLib/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="维保经验" data-pid="111"  data-url="devExpLib/index" ><img class="list-style" src="imgs/bgc/2.png"> 维保经验</li></a>

            <a href="manage#ruleReg/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="规章制度" data-pid="111"  data-url="ruleReg/index" ><img class="list-style" src="imgs/bgc/3.png"> 规章制度</li></a>

            <a href="manage#devKnow/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备知识" data-pid="111"  data-url="devKnow/index" ><img class="list-style" src="imgs/bgc/4.png"> 设备知识</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="91" >

            <a href="manage#curingstatic/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="养护统计" data-pid="91"  data-url="curingstatic/list" ><img class="list-style" src="imgs/bgc/1.png"> 养护统计</li></a>

            <a href="manage#devicestatic/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="设备统计" data-pid="91"  data-url="devicestatic/list" ><img class="list-style" src="imgs/bgc/2.png"> 设备统计</li></a>

            <a href="manage#repairstatic/list" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="维修统计" data-pid="91"  data-url="repairstatic/list" ><img class="list-style" src="imgs/bgc/3.png"> 维修统计</li></a>

            <a href="manage#statisticsStock/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="库存统计" data-pid="91"  data-url="statisticsStock/index" ><img class="list-style" src="imgs/bgc/4.png"> 库存统计</li></a>

            <a href="manage#performanceStatistics/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="运行统计" data-pid="91"  data-url="performanceStatistics/index" ><img class="list-style" src="imgs/bgc/5.png"> 运行统计</li></a>

            <a href="manage#patrolStatistics/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="点检统计" data-pid="91"  data-url="patrolStatistics/index" ><img class="list-style" src="imgs/bgc/6.png"> 点检统计</li></a>

        </ul>

        <ul class="menu-two-ul-s" data-pid="61" >

            <a href="manage#ctrlUser/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="人员管理" data-pid="61"  data-url="ctrlUser/index" ><img class="list-style" src="imgs/bgc/1.png"> 人员管理</li></a>

            <a href="manage#ctrlGroup/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="分组授权" data-pid="61"  data-url="ctrlGroup/index" ><img class="list-style" src="imgs/bgc/2.png"> 分组授权</li></a>

            <a href="manage#ctrlAppointment/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="预约时间" data-pid="61"  data-url="ctrlAppointment/index" ><img class="list-style" src="imgs/bgc/3.png"> 预约时间</li></a>

            <a href="manage#ctrlRecord/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="上机记录" data-pid="61"  data-url="ctrlRecord/index" ><img class="list-style" src="imgs/bgc/4.png"> 上机记录</li></a>

            <a href="manage#ctrlAppointmentCtrl/index" class="menu-sun-a" ><li class="menu-two-ul-item" data-title="预约设置" data-pid="61"  data-url="ctrlAppointmentCtrl/index" ><img class="list-style" src="imgs/bgc/5.png"> 预约设置</li></a>

        </ul>-->

    </div>



</div>
<div class="div-main-p">
    <div class="div-main">
        <div class="repair-status">
            <div class="repair-status-li first-page-bg" style="margin-left:1%" onclick="WelcomeRoute.unprocessed_report()">
                <img alt="" src="page/back/firstpage/img/报修设备.png">
                <span class="repair-status-font" style="font-size: 9.782px;">未处理报修</span>
                <span class="repair-status-number ndbxnum" style="font-size: 19.71px;">3</span>
            </div>
            <div class="repair-status-li scond-page-bg" onclick="WelcomeRoute.today_report()">
                <img alt="" src="page/back/firstpage/img/报事报修.png">
                <span class="repair-status-font" style="font-size: 9.782px;">今日报修</span>
                <span class="repair-status-number jrbxnum" style="font-size: 19.71px;">0</span>
            </div>
            <div class="repair-status-li third-page-bg" onclick="WelcomeRoute.all_report()">
                <img alt="" src="page/back/firstpage/img/故障_99.png">
                <span class="repair-status-font" style="font-size: 9.782px;">故障数</span>
                <span class="repair-status-number gznum" style="font-size: 19.71px;">41</span>
            </div>
            <div class="repair-status-li four-page-bg" style="margin-right:0px" onclick="WelcomeRoute.all_report()">
                <img alt="" src="page/back/firstpage/img/设备.png">
                <span class="repair-status-font" style="font-size: 9.782px;">设备完好率</span>
                <span class="repair-status-number sbwhl" style="font-size: 19.71px;">83%</span>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/btn.js" ></script>
<script type="text/javascript">


    var LAYER_WINDOW_FIVE_ROW_HEIGHT = "450px";

    var LAYER_WINDOW_EIGHT_ROW_HEIGHT = "605px";

    var todoList = $("#todoList");
    function initTodoList(){
        $.post("http://demo.windasoft.com:8080/windaedm/manage/getTodoCount", {}, function(data){
           // alert("initTodoList:"+data);
            if(data.code == 0){
                var map = data.data;

                var PROCESS_TYPE_PICK = map.PROCESS_TYPE_PICK || 0;
                var PROCESS_TYPE_SCRAP = map.PROCESS_TYPE_SCRAP || 0;
                var PROCESS_TYPE_ALLOCATION = map.PROCESS_TYPE_ALLOCATION || 0;
                var PROCESS_TYPE_PURCHASE = map.PROCESS_TYPE_PURCHASE || 0;
                var PROCESS_TYPE_COMMISSION_REPAIR = map.PROCESS_TYPE_COMMISSION_REPAIR || 0;
                var PROCESS_TYPE_DEV_SOLD = map.PROCESS_TYPE_DEV_SOLD || 0;

                var PROCESS_TYPE_PUR_PLAN = map.PROCESS_TYPE_PUR_PLAN || 0;

                var TODO_COUNT_REPORT_ASSIGN = map.TODO_COUNT_REPORT_ASSIGN || 0;
                var TODO_COUNT_REPAIR = map.TODO_COUNT_REPAIR || 0;
                var TODO_COUNT_REPORT_NEED_ACCEPT = map.TODO_COUNT_REPORT_NEED_ACCEPT || 0;

                var TODO_COUNT_MAINTAIN = map.TODO_COUNT_MAINTAIN || 0;
                var TODO_COUNT_PATROL = map.TODO_COUNT_PATROL || 0;

                var TODO_COUNT_INVENTORY_COUNT = map.TODO_COUNT_INVENTORY_COUNT || 0;

                var TODO_COUNT_COUNT = map.TOTAL_COUNT;

                var TODO_COUNT_MV_TASK = map.TODO_COUNT_MV_TASK;


                //权限sql无对应具体的模块权限，则按整个controller来判断
                var CODE_MENU_MAP = {'ScrapController':'ScrapController'
                    ,'AllocationController':'AllocationController'
                    ,'PurPlanController':'PurPlanController'
                    ,'PurPurchaseController':'PurPurchaseController'
                    ,'StkPickingController':'StkPickingController'
                    ,'CommissionRepairController':'CommissionRepairController'
                    ,'DevSoldController':'DevSoldController'
                    ,'ReportingFaultsController':'ReportingFaultsController'
                    ,'MaintainTaskController':'MaintainTaskController'
                    ,'PatrolTaskController':'PatrolTaskController'
                    ,'DeviceInventoryController':'DeviceInventoryController'
                    ,'Mv_TaskController':'Mv_TaskController'};

                function checkHasPower(code){
                    if(g_usermenu.indexOf(code.toLowerCase())>-1){
                        return true;
                    }else{
                        return false;
                    }
                }


                var noTodo = $("#noTodo");
                todoList.find("dd").hide();
                if(TODO_COUNT_COUNT == 0){
                    $("#todoCount").hide();
                    noTodo.show();
                }else {
                    $("#todoCount").show().text(TODO_COUNT_COUNT > 99? "99+": TODO_COUNT_COUNT);
                    if(PROCESS_TYPE_COMMISSION_REPAIR > 0 && checkHasPower(CODE_MENU_MAP["CommissionRepairController"])){
                        $("#todoCommissionRepairCount").show().find(".num").text(PROCESS_TYPE_COMMISSION_REPAIR > 99? "99+": PROCESS_TYPE_COMMISSION_REPAIR);
                    }
                    if(PROCESS_TYPE_DEV_SOLD > 0 && checkHasPower(CODE_MENU_MAP["DevSoldController"])){
                        $("#todoDevSoldCount").show().find(".num").text(PROCESS_TYPE_DEV_SOLD > 99? "99+": PROCESS_TYPE_DEV_SOLD);
                    }
                    if(PROCESS_TYPE_PICK > 0 && checkHasPower(CODE_MENU_MAP["StkPickingController"])){
                        $("#todoPickingCount").show().find(".num").text(PROCESS_TYPE_PICK > 99? "99+": PROCESS_TYPE_PICK);
                    }
                    if(PROCESS_TYPE_SCRAP > 0 && checkHasPower(CODE_MENU_MAP["ScrapController"])){
                        $("#todoScrapCount").show().find(".num").text(PROCESS_TYPE_SCRAP > 99? "99+": PROCESS_TYPE_SCRAP);
                    }
                    if(PROCESS_TYPE_ALLOCATION > 0 && checkHasPower(CODE_MENU_MAP["AllocationController"])){
                        $("#todoAllocationCount").show().find(".num").text(PROCESS_TYPE_ALLOCATION > 99? "99+": PROCESS_TYPE_ALLOCATION);
                    }
                    if(PROCESS_TYPE_PURCHASE > 0 && checkHasPower(CODE_MENU_MAP["PurPurchaseController"])){
                        $("#todoPurchaseCount").show().find(".num").text(PROCESS_TYPE_PURCHASE > 99? "99+": PROCESS_TYPE_PURCHASE);
                    }
                    if(PROCESS_TYPE_PUR_PLAN > 0 && checkHasPower(CODE_MENU_MAP["PurPlanController"])){
                        $("#todoPurchasePlanCount").show().find(".num").text(PROCESS_TYPE_PUR_PLAN > 99? "99+": PROCESS_TYPE_PUR_PLAN);
                    }

                    if(TODO_COUNT_REPORT_ASSIGN > 0 && checkHasPower(CODE_MENU_MAP["ReportingFaultsController"])){
                        $("#todoReportAssignCount").show().find(".num").text(TODO_COUNT_REPORT_ASSIGN > 99? "99+": TODO_COUNT_REPORT_ASSIGN);
                    }
                    if(TODO_COUNT_REPORT_NEED_ACCEPT > 0 && checkHasPower(CODE_MENU_MAP["ReportingFaultsController"])){
                        $("#todoNeedAcceptCount").show().find(".num").text(TODO_COUNT_REPORT_NEED_ACCEPT > 99? "99+": TODO_COUNT_REPORT_NEED_ACCEPT);
                    }

                    if(TODO_COUNT_REPAIR > 0 && checkHasPower(CODE_MENU_MAP["ReportingFaultsController"])){
                        $("#todoRepairCount").show().find(".num").text(TODO_COUNT_REPAIR > 99? "99+": TODO_COUNT_REPAIR);
                    }

                    if(TODO_COUNT_MAINTAIN > 0 && checkHasPower(CODE_MENU_MAP["MaintainTaskController"])){
                        $("#todoMaintainCount").show().find(".num").text(TODO_COUNT_MAINTAIN > 99? "99+": TODO_COUNT_MAINTAIN);
                    }
                    if(TODO_COUNT_PATROL > 0 && checkHasPower(CODE_MENU_MAP["PatrolTaskController"])){
                        $("#todoPatrolCount").show().find(".num").text(TODO_COUNT_PATROL > 99? "99+": TODO_COUNT_PATROL);
                    }
                    if(TODO_COUNT_INVENTORY_COUNT > 0 && checkHasPower(CODE_MENU_MAP["DeviceInventoryController"])){
                        $("#todoInventoryCountCount").show().find(".num").text(TODO_COUNT_INVENTORY_COUNT > 99? "99+": TODO_COUNT_INVENTORY_COUNT);
                    }
                    if(TODO_COUNT_MV_TASK > 0 && checkHasPower(CODE_MENU_MAP["Mv_TaskController"])){
                        $("#todoMvTaskCount").show().find(".num").text(TODO_COUNT_MV_TASK > 99? "99+": TODO_COUNT_MV_TASK);
                    }
                }
            }
        })
    }
    initTodoList();
    //	点击admin
    $(function(){

        $(".fream-admin").mouseenter(function(){
            $(this).find(".admin-hover").show(300);
        })
        $(".fream-admin").mouseleave(function(){
            $(this).find(".admin-hover").stop().hide(300);
        })
    });
    // 	点击换肤按钮
    $(function(){
        $("body").on("click",".fream-skin",function(){
            if($(this).children(".skin").is(":hidden")){
                $(this).children(".skin").show();
            }else{
                $(this).children(".skin").hide();
            }
        });
        $("body").on("click",".skin li",function(){
            var index=parseInt($(this).index());
            skin(index);
        });

    });


    function QueryString(){
        var map = {};
        this.getValue = function(k){
            return map[k];
        }
        function init(){
            var str = window.location.hash;
            if(!(str && str.indexOf("?") > -1)){
                return;
            }
            str = str.split("?")[1];
            var params = str.split("&");
            for(var i = 0; i < params.length; i++){
                var pairs = params[i].split("=");
                map[pairs[0]] = pairs[1];
            }
        }
        init();
        this.__map = map;
    }
    var SearchParam = new QueryString();

    $(function(){
        //是否存在锚点
        if(window.location.hash != ""){
            var inithash = window.location.hash.substr(1);
            var uri = inithash;
            var index = inithash.indexOf("/");
            if(index!= -1){
                inithash = inithash.substring(0, index);
            }
            //给选中的item加选中样式（如果页面发生跳转）
            $(".div-left-item").removeClass("left-item-selected");
            $(".div-left-item[data-url='"+uri+"']").addClass("left-item-selected");

            loadHtml(uri,'');
        }
        initmenu();
        $(".time").timeago();
    })
    //监听锚点变换事件
    window.onhashchange = function(){
        if(window.location.hash != ""){
            var inithash = window.location.hash.substr(1);
            var uri = inithash;
            var index = inithash.indexOf("/");
            if(index!= -1){
                inithash = inithash.substring(0, index);
            }
            //给选中的item加选中样式（如果页面不发生跳转）
            $(".div-left-item").removeClass("left-item-selected");
            $(".div-left-item[data-url='"+uri+"']").addClass("left-item-selected");
            loadHtml(uri,'');
        }
        initmenu();
    };
    var searchCacheManager = new SearchCacheManager(".search-cache:not(div)");
    function loadCacheSearch(){//如果是用js添加的dom就重新load一下查询参数
        searchCacheManager.load();
    }

    var __Var = {};//每次loadHtml前清空
    var __LOAD_HTML_HISTORY = [];
    //无刷新加载html页面
    var loadHtml = function(href, parm){
        __Var = {};
        __LOAD_HTML_HISTORY.push(href + "	" + parm);

        window.UPLOAD_JS_ACCEPT = void(0);
        window.LIST_RIGHT_DATA_FUNC = void(0);
        searchCacheManager.save();
        $(".div-main").html("");//每次加载前，清空数据
        todoList.hide();
        initTodoList();
        $(".skin").hide();
        var loadingIndex="";
        var url = href
        if(location.href.indexOf("#")<0){
            parm = {"welcomindex":"welcomeindex"};
        }
        if(window.dataTable){
            dataTable = void(0);
        }
        $.ajax({
            url: url,
            cache: false,
            dataType: "html",//ajax请求得到的类型
            method: 'post',
            data: parm,
            beforeSend: function () {
                loadingIndex =layer.load();
            },
            success: function(data) {
                if(data == "401"){
                    location.href='login.jsp';
                }else if(data.code == 10 || data.indexOf("用户未登录")!=-1){
                    location.href='http://demo.windasoft.com:8080/windaedm/manage/logout';
                } else {
                    if(url.indexOf("http://demo.windasoft.com:8080/windaedm/") === 0){
                        var temp = url.substring("http://demo.windasoft.com:8080/windaedm/".length);
                        searchCacheManager.setCurrentKey(temp);
                    }else {
                        searchCacheManager.setCurrentKey(url);
                    }
                    var lastIndexOfSearchCache = data.lastIndexOf("search-cache");
                    if(lastIndexOfSearchCache >= 0){
                        var leftData = data.substring(lastIndexOfSearchCache, data.length);

                        var nextIndexOfScript = leftData.indexOf("<script>");
                        if(nextIndexOfScript < 0){
                            data += "<script>;searchCacheManager.load();bindInputKeyPress();<\/script>";
                        }else {
                            var a = data.substring(0, lastIndexOfSearchCache + nextIndexOfScript + 9);
                            var b = data.substring(lastIndexOfSearchCache + nextIndexOfScript + 9, data.length);
                            data = a + ";searchCacheManager.load();bindInputKeyPress();" + b;
                        }
                    }
                    $(".div-main").html(data);
                    sys.initMenuPower();
// 	        	changePgaeContentStyle();
                    changePgaeContentStyles();
                    //searchCacheManager.load();
                    window.reloadHtml = function(){
                        loadHtml(href, parm);
                    };
                }
                initmenu()
                closeLoading(loadingIndex);
            },
            error: function(){
                $(".div-main").html('');
                closeLoading(loadingIndex);
            }
        });
    };

    // search
    function bindInputKeyPress(){
        $('.oper-search input').bind('keypress', function(event) {
            if (!event) event = window.event;
            if ((event.keyCode || event.which) == 13) {
                $(".oper-search .glyphicon-search").click();
            }
        });
    }

    function changePgaeContentStyles(){
        var h1=$(window).height();
        var h2=$(".page-header").height();
        var h3=$(".page-button").height();
        $(".div-main").css("min-height",h1-66);
        var h4=$(".div-main").height();
        $(".page-content-s").css("min-height",h4-h2-15);
        $(".page-content").css("min-height",h4-h2-15);
        $(".page-content-main").css("min-height",h1-h2-h3-120);
        var h5=$(".page-content-main").height();
        $(".page-content-left").css("min-height",h5-20);
        $(".page-content-right").css("min-height",h5-20);
        var w=$(".page-content-main").width();
        var w1=$(".page-content-left").width();
        $(".page-content-right").width(w-w1-65);
        $(window).resize(function(){
            var h1=$(window).height();
            var h2=$(".page-header").height();
            var h3=$(".page-button").height();
            $(".div-main").css("min-height",h1-66);
            var h4=$(".div-main").height();
            $(".page-content-s").css("min-height",h4-h2-15);
            $(".page-content").css("min-height",h4-h2-15);
            $(".page-content-main").css("min-height",h1-h2-h3-120);
            var w=$(".page-content-main").width();
            var w1=$(".page-content-left").width();
            $(".page-content-right").width(w-w1-60);
        });
    }

    //如果第一次登录
    if(location.href.indexOf("#")<0){
        //alert("location:"+location.href)
        loadHtml("manage/welcome","");
    }

    //菜单树（增加对应的hover事件）
    $(".div-left-item").hover(
        function(){
            $(this).addClass("active");
        },function(){
            $(this).removeClass("active");
        }
    );
    //菜单树（增加对应的hover事件）
    $(".menu-s-item").click(function(){
        $(".menu-s-item").removeClass("active");
        $(this).addClass("active");
    })
    $("body").on("click",".menu-p",function(){
        $(".menu-p").removeClass("active");
        $(".menu-s").slideUp(200);
        $(".title-right").removeClass("glyphicon-menu-down");
        if($(this).index()==0){
            return;
        }else if($(this).next(".menu-s").is(":hidden")){
            $(this).addClass("active");
            $(this).find(".title-right").addClass("glyphicon-menu-down");
            $(this).next(".menu-s").slideDown(200);
        }else{
            $(this).removeClass("active");
            $(this).find(".title-right").removeClass("glyphicon-menu-down");
            $(this).next(".menu-s").slideUp(200);
        }
    })
    $(".user-setting").hover(function(){
        $(this).addClass("bg-style1");
    },function(){
        if($(".user-item").is(":hidden")){
            $(this).removeClass("bg-style1");
        }
    })
    $(".user-item-list").hover(function(){
        $(this).addClass("bg-style2");
        $(this).css("color","#1ABB9C");
    },function(){
        $(this).removeClass("bg-style2");
        $(this).css("color","#71879E");
    })


    $(".user-setting").click(function(){
        if($(".user-item").is(":hidden")){
            $(this).addClass("bg-style1");
            $(this).find("span").removeClass("glyphicon-chevron-down");
            $(this).find("span").addClass("glyphicon-chevron-up");
            $(".user-item").show("normal");
        }else{
            $(".user-item").hide("normal");
            $(this).find("span").removeClass("glyphicon-chevron-up");
            $(this).find("span").addClass("glyphicon-chevron-down");
            //(".user-item").removeClass("bg-style1");
        }
    })

    //不论鼠标指针穿过被选元素或其子元素，都会触发 mouseover 事件。
    //只有在鼠标指针穿过被选元素时，才会触发 mouseenter 事件。
    $(".user-setting").bind("mouseenter",function(){
        $(this).addClass("bg-style1");
        $(this).find("span").removeClass("glyphicon-chevron-down");
        $(this).find("span").addClass("glyphicon-chevron-up");
        $(".user-item").show("normal");

    })

    //不论鼠标指针离开被选元素还是任何子元素，都会触发 mouseout 事件。
    //只有在鼠标指针离开被选元素时，才会触发 mouseleave 事件。
    $(".welcome-right").bind("mouseleave",function(){
        $(".user-item").stop().hide("normal");
        $(".user-setting").find("span").removeClass("glyphicon-chevron-up");
        $(".user-setting").find("span").addClass("glyphicon-chevron-down");
        $(".user-setting").removeClass("bg-style1");
    })


    /**
     * 隐藏左边菜单
     */
    function hideleft(){
        if($(".div-left").hasClass("div-left-hide")){
            $(".div-left").removeClass("div-left-hide");
            $(".div-main-p").removeClass("div-main-p-show");
        }else{
            $(".div-left").addClass("div-left-hide");
            $(".div-main-p").addClass("div-main-p-show");
        }
    }

    $(".menu-p").hover(function(){
        $(this).find("span").css("color","white");
        //$(this).find("img").attr("src","img/device/shousuo1.png");
    },function(){
        $(this).find("span").css("color","#A6AAAF");
        //$(this).find("img").attr("src","img/device/shousuo.png");
    })

    function initmenu(){
// 	console.log("菜单显示");
        if(window.location.hash != ""){
            $(".menu-p.active").removeClass("active");
            $(".menu-s-item").removeClass("active");
            $(".menu-s").hide();

            var inithash = window.location.hash.substr(1);
            var uri = new QueryString().getValue("mainPage") || inithash.split("?")[0];
            $(".left-menu a").each(function(n,i){
                var href = $(this).attr("href");
                var lastHref = href.replace("manage#","").split("/")[0];//类名的引用
                if(href==("manage#"+uri)){
                    $(this).parent().addClass("active");
                    $(this).parent().parent().show();
                    $(this).parent().parent().prev().addClass("active");
                }
            })
        }
        $(".index-maincontent").show();
    }


    function __activeMenu(hash, opts){
        opts = opts || {};
        $(".menu-p.active").removeClass("active");
        $(".menu-s-item").removeClass("active");
        $(".menu-s").hide();

        $(".left-menu a").each(function(n,i){
            var href = $(this).attr("href");

            if(href==("manage#"+hash)){
                $(this).parent().addClass("active");
                $(this).parent().parent().show();
                $(this).parent().parent().prev().addClass("active");
                if(opts.updateUrl && window.history.pushState){
                    window.history.pushState({}, null, href);
                }
                if(opts.loadHtml && window.loadHtml){
                    window.loadHtml(opts.hash || hash, opts.params);
                }
            }
        });
    }

    /**
     * 初始化菜单模式
     */
    var shousuo = "img/device/shousuo.png";
    var zhankai = "img/device/zhankai.png";
    var initMenuMode = function(){
        var mode = $.cookie("http://demo.windasoft.com:8080/windaedm/showMode");
        if(mode=="zhaikai"){
            $.cookie("http://demo.windasoft.com:8080/windaedm/showMode", "zhaikai", {expires : 7});
            $(".changeMenu").attr("src",shousuo);
            $(".div-left").css({"width":"190px"});
            $(".div-main-p").css({"padding-left":"190px"});
            //下面先隐藏再显示，是为了不让布局闪乱
            $(".div-main-p").show();
            $(".div-left").show();
            $(".left-menu-one").show();
        }else{
            var h=$(window).height();

            $.cookie("http://demo.windasoft.com:8080/windaedm/showMode", "shousuo", {expires : 7});
            $(".changeMenu").attr("src",zhankai);
            if(h<880){
                $(".div-left").css({"width":"70px"});
                $(".div-main-p").css({"padding-left":"70px"});
                $(".menu-two-li-p").css("padding","0px")
            }
            else{
                $(".div-left").css({"width":"80px"});
                $(".div-main-p").css({"padding-left":"80px"});
            }

            //下面先隐藏再显示，是为了不让布局闪乱
            $(".div-main-p").show();
            $(".div-left").show();
            $(".left-menu-two").show();
        }
        reloadFirstPage();
    }

    /**
     * 切换菜单模式
     */
    var changeMenu = function(that){
        var src = $(that).find("img").attr("src");
        if(src == shousuo){
            $.cookie("http://demo.windasoft.com:8080/windaedm/showMode", "shousuo", {expires : 7});
            $(".changeMenu").attr("src",zhankai);
            $(".left-menu-one").hide();
            $(".left-menu-two").show();
            var h=$(window).height();
            if(h<880){
                $(".div-left").css({"width":"70px"});
                $(".div-main-p").css({"padding-left":"70px"});
            }
            else{
                $(".div-left").css({"width":"80px"});
                $(".div-main-p").css({"padding-left":"80px"});
            }


        }else{
            $.cookie("http://demo.windasoft.com:8080/windaedm/showMode", "zhaikai", {expires : 7});
            console.log($.cookie("http://demo.windasoft.com:8080/windaedm/showMode"));
            $(".changeMenu").attr("src",shousuo);
            $(".left-menu-one").show();
            $(".left-menu-two").hide();
            $(".div-left").css({"width":"190px"});
            $(".div-main-p").css({"padding-left":"190px"});
        }
        reloadFirstPage();
    }
    //显示二级菜单


    $("body").on('mouseover mouseout','.menu-two-li-p',function(event){
        var windowHeight = $(window).height();
        var index = parseInt($(this).attr("data-index")||0);
        var pid = $(this).attr("data-id");
        var scrollTop = parseInt($(".left-menu-two").offset().top);
        console.log(scrollTop);
        var h=$(window).height();
        if(h<880){
            var  top = parseInt(index)*45+22+60;
        }else{
            var top = parseInt(index)*53+30+60;
        }



        $('.menu-two-li-p').removeClass("hover-sun-li");
        $(this).addClass("hover-sun-li");

        if(event.type == "mouseover"){
            $(".menu-two-ul-s").hide();
            var menuTwoUlSHeight = $(".menu-two-ul-s[data-pid='"+pid+"']").show().height();
            if(windowHeight - top < (menuTwoUlSHeight)){
                top = windowHeight - (menuTwoUlSHeight );
            }
            var h=$(window).height();
            if(h<880){
                $(".menu-sun-content").css({"top":top+"px","left":"70px"}).show();
            }
            else{
                $(".menu-sun-content").css({"top":top+"px","left":"80px"}).show();
            }

        }
        else if(event.type == "mouseout"){
            $('.menu-two-li-p').removeClass("hover-sun-li");
        }
    })
    $("body").on('mouseleave','.menu-two-ul-s',function(event){
        if(event.type == "mouseleave"){
            $(".menu-two-ul-s").hide();
            $('.menu-two-li-p').removeClass("hover-sun-li");
        }
    })
    $("body").on('mouseover mouseout','.menu-two-ul-item',function(event){
        if(event.type == "mouseover"){
            $(this).addClass("hover-sun-li");
            $(this).find("a").addClass("hover-sun-li");
        }
        else if(event.type == "mouseout"){
            $(this).removeClass("hover-sun-li");
            $(this).find("a").removeClass("hover-sun-li");
        }
    })
    //初始化菜单模式
    initMenuMode();
    $(function(){
        var h=$(window).height();
        $(".first-page-content").height(h);
    });

    // $(function(){
    // 	freamWidth();
    // 	$(window).resize(function(){
    // 		freamWidth();
    // 	});

    // });
    // function freamWidth(){
    // 	var h=$(window).height();
    // 	if(h<880){
    // 		$(".left-menu-two .menu-two-li-p").css("padding","0px");
    // 		$(".menu-two-li-title").css("font-size","12px");
    // 		$(".left-menu-two .menu-two-li-p span").css("line-height","22px");
    // 		$(".div-left").css("width","70px");
    // 		$(".div-main-p").css("padding-left","70px");
    // 	}
    // 	else{
    // 		$(".left-menu-two .menu-two-li-p").css("padding","5px 0px");
    // 		$(".menu-two-li-title").css("font-size","14px");
    // 		$(".left-menu-two .menu-two-li-p span").css("line-height","24px");
    // 		$(".div-left").css("width","90px");
    // 		$(".div-main-p").css("padding-left","90px");
    // 	}
    // }

    function fs(){
        $.ajaxSettings.async = false;
        $.get("manage/fullscreenIndex", {}, function(data){
            $(window).unbind();
            document.write(data);
            FullScreenManager.on();

        });
        $.ajaxSettings.async = true;
    }
    $(".div-left").mouseleave(function(){
        $(".menu-sun-content").hide();
    })

    $(".matter").mouseleave(function(){
        $(this).children("#todoList").hide();
    })
    $(".fream-skin").mouseleave(function(){
        $(this).children(".skin").hide();
    })
</script>

</html>